import request from '@/utils/request'

//用户车牌列表
export function fetchList(query) {
  return request({
    url: '/user/car/list',
    method: 'post',
    data: query
  })
}

//用户车牌详情
export function userCarDetail(id) {
  return request({
    url: `/user/car/get/${id}`,
    method: 'get',
  })
}

//删除用户车牌
export function delUserCar(id) {
  return request({
    url: `/user/car/delete/${id}`,
    method: 'post',
  })
}

//修改用户车牌号码
export function updatePlateNumber(query) {
  return request({
    url: '/user/car/updatePlateNumber',
    method: 'post',
    data: query
  })
}

//审核用户车牌
export function verifyUserCar(query) {
  return request({
    url: '/user/car/verify',
    method: 'post',
    data: query
  })
}